//
//  RZVoiceCaptureView.h
//  RZIM
//
//  Created by reyzhang on 2021/8/18.
//  按下录制时，显示的window窗

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>


NS_ASSUME_NONNULL_BEGIN

@class RZVoiceCaptureView;
@protocol RZVoiceCaptureViewDelegate <NSObject>
- (void)RZVoiceCaptureViewTimeout:(double)duration;

@optional
- (void)RZVoiceCaptureViewTimeUpdate:(double)duration;
@end


@interface RZVoiceCaptureView : UIView
@property (nonatomic, weak) id<RZVoiceCaptureViewDelegate> delegate;
@property (nonatomic, copy,readonly) NSURL *recordFile;

@property (nonatomic, readonly, copy) NSData *stopRecord;

@property (nonatomic, readonly, assign) double duration;

- (instancetype)initWithFrame:(CGRect)frame;

- (void)startRecord;

- (void)cancelRecord;

- (void)showCancelView;

- (void)hideCancelView;

- (void)showMsgShortView;

- (void)stopTimer;
@end

NS_ASSUME_NONNULL_END
